<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<title></title>
        <link href="static/css/bootstrap.min.css" rel="stylesheet" />
 		<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="static/css/font-awesome.min.css" />
		<!-- 下拉框 -->
		<link rel="stylesheet" href="static/css/chosen.css" />

		<link rel="stylesheet" href="static/css/ace.min.css" />
		<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="static/css/ace-skins.min.css" />

		<link rel="stylesheet" href="static/css/datepicker.css" />
		<!-- 日期框 -->
		<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		<script type="text/javascript">
	//保存
	function save() {
		if ($("#eid").val() == "") {

			$("#eid").tips({
				side : 3,
				msg : '输入id号',
				bg : '#AE81FF',
				time : 3
			});

			$("#eid").focus();
			return false;
		}
		if ($("#software_version").val() == "") {

			$("#software_version").tips({
				side : 3,
				msg : '输入软件版本',
				bg : '#AE81FF',
				time : 3
			});
			$("#software_version").focus();
			return false;
		}
		if ($("#hardware_version").val() == "") {

			$("#hardware_version").tips({
				side : 3,
				msg : '输入硬件版本',
				bg : '#AE81FF',
				time : 3
			});
			$("#hardware_version").focus();
			return false;
		}
		if ($("#location").val() == "") {

			$("#location").tips({
				side : 3,
				msg : '输入位置',
				bg : '#AE81FF',
				time : 3
			});
			$("#location").focus();
			return false;
		}
		if ($("#environment_photo").val() == "") {

			$("#environment_photo").tips({
				side : 3,
				msg : '输入图片地址',
				bg : '#AE81FF',
				time : 3
			});
			$("#environment_photo").focus();
			return false;
		}
		if ($("#equipment_version").val() == "") {

			$("#equipment_version").tips({
				side : 3,
				msg : '输入设备型号',
				bg : '#AE81FF',
				time : 3
			});
			$("#equipment_version").focus();
			return false;
		}
		if ($("#device_identification").val() == "") {

			$("#device_identification").tips({
				side : 3,
				msg : '输入设备类型',
				bg : '#AE81FF',
				time : 3
			});
			$("#device_identification").focus();
			return false;
		}
		if ($("#latitude").val() == "") {

			$("#latitude").tips({
				side : 3,
				msg : '输入设备类型',
				bg : '#AE81FF',
				time : 3
			});
			$("#latitude").focus();
			return false;
		}
		if ($("#longitude").val() == "") {

			$("#longitude").tips({
				side : 3,
				msg : '输入设备类型',
				bg : '#AE81FF',
				time : 3
			});
			$("#longitude").focus();
			return false;
		}
		
		$("#Form").submit();
		$("#zhongxin").hide();
		$("#zhongxin2").show();
	}
	function addInco(){
		
		
	}
</script>
</head>
<body>

	<form action="information/${msg }.do" name="Form" id="Form" method="post">
	 <div id="zhongxin">
		<table id="table_report"
				class="table table-striped table-bordered table-hover">
			<tr>
				<td><input type="text" name="eid" id="eid" value="${pd.eid}" maxlength="32" placeholder="这里输入ID号"/></td>
			</tr>
			<tr>
				<td><input type="text" name="software_version" id="software_version" value="${pd.software_version}" maxlength="32" placeholder="这里输入软件版本"/></td>
			</tr>
			<tr>
				<td><input type="text" name="hardware_version" id="hardware_version" value="${pd.hardware_version}" maxlength="32" placeholder="这里输入硬件版本"/></td>
			</tr>
			<tr>
				<td><input type="text" name="location" id="location" value="${pd.location}" maxlength="32" placeholder="这里输入位置"/></td>
			</tr>
			<tr>
				<td><input type="text" name="environment_photo" id="environment_photo" value="${pd.environment_photo}" maxlength="32" placeholder="这里输入图片地址"/></td>
			</tr>
			<tr>
				<td><input type="text" name="equipment_version" id="equipment_version" value="${pd.equipment_version}" maxlength="32" placeholder="这里输入设备型号"/></td>
			</tr>
			<tr>
				<td><input type="text" name="device_identification" id="device_identification" value="${pd.device_identification}" maxlength="32" placeholder="这里输入设备类型"/></td>
			</tr>
			<tr>
				<td><input type="text" name="longitude" id="longitude" value="${pd.longitude}" maxlength="32" placeholder="这里输入经度"/></td>
			</tr>
			<tr>
				<td><input type="text" name="latitude" id="latitude" value="${pd.latitude}" maxlength="32" placeholder="这里输入纬度"/></td>
			</tr>
			
			<tr>
				<td style="text-align: center;" colspan="10">
				<a	class="btn btn-mini btn-primary" onclick="save();">保存</a> 
				<a	class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
				</td>
			</tr>
		</table>
		</div>
		<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
	</form>
	
	<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="static/js/bootstrap.min.js"></script>
		<script src="static/js/ace-elements.min.js"></script>
		<script src="static/js/ace.min.js"></script>

</body>
</html>